package com.zhiyou.app.shop.website.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou.app.shop.website.dao.ILoclistDao;
import com.zhiyou.app.shop.website.dao.pojo.Loclist;
import com.zhiyou.app.shop.website.service.ILoclistService;

@Service(value="loclistService")
public class LoclistServiceImpl implements ILoclistService {

	@Autowired
	private ILoclistDao loclistDao;
	
	public List<Loclist> getConutry() {
		return loclistDao.findAllCountry();
	}

	public List<Loclist> getProvince(double countryId) {
		return loclistDao.findAllProvince(countryId);
	}

	public List<Loclist> findAllProvinceByContry(String countryName){
		return loclistDao.findAllProvinceByContry(countryName);
	}
}
